package com.liehu.business.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 回复表
 */
@TableName("tb_reply")
public class Reply implements Serializable {
    @TableId(type = IdType.INPUT)
    private String id;
    private String content;
    private String nickName;
    @TableField(fill = FieldFill.INSERT) //使用Mybatis-plus插入时自动填充时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date replyTime;

    private String leaveMessageId;
    private String employeeId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    public String getLeaveMessageId() {
        return leaveMessageId;
    }

    public void setLeaveMessageId(String leaveMessageId) {
        this.leaveMessageId = leaveMessageId;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    @Override
    public String toString() {
        return "Reply{" +
                "id='" + id + '\'' +
                ", content='" + content + '\'' +
                ", nickName='" + nickName + '\'' +
                ", replyTime=" + replyTime +
                ", leaveMessageId='" + leaveMessageId + '\'' +
                ", employeeId='" + employeeId + '\'' +
                '}';
    }
}
